package top.xana.acg.anime.model

import androidx.recyclerview.widget.DiffUtil

/**
 * @author xana
 * @date 2022/10/30 0030 19:00
 * @email cv4096@qq.com
 **/

object DiffAnime : DiffUtil.ItemCallback<Anime>() {
    override fun areItemsTheSame(oldItem: Anime, newItem: Anime): Boolean {
        return oldItem == newItem
    }

    override fun areContentsTheSame(oldItem: Anime, newItem: Anime): Boolean {
        return oldItem.uri == newItem.uri
    }

}
